<!DOCTYPE html>
<html>

	<!-- Mirrored from www.zi-han.net/theme/hplus/table_jqgrid.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:20:02 GMT -->

	<head>

		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">

		<title>技术商品添加2</title>

		<!-- <link rel="shortcut icon" href="favicon.ico"> -->
		<link href="css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
		<link href="css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">

		<link href="css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
		<link href="css/plugins/iCheck/custom.css" rel="stylesheet">
		<link href="css/animate.min.css" rel="stylesheet">
		<link href="css/style.min862f.css?v=4.1.0" rel="stylesheet">
		<link rel="stylesheet" href="css/cropper.min.css">
		<link rel="stylesheet" href="css/ImgCropping.css">
		<link rel="stylesheet" href="css/newStyle.css">


		<style>
			input::-webkit-outer-spin-button,
			input::-webkit-inner-spin-button {
				-webkit-appearance: none;
			}
			input[type="number"]{
				-moz-appearance: textfield;
			}
		</style>
	</head>

	<body class="gray-bg">
		<div class="wrapper wrapper-content  animated fadeInRight">
			<div style="width:100%;flex;align-items: center;flex-direction: column;">
				<div class="ibox-title pull-left w100p" style="padding: 10px 20px;">
					<div class="pull-left">
						<div class="ibox-tools cache5">
							填写商品信息
						</div>
					</div>
				</div>
				<div style="width:100%;margin: 0 auto;background-color: #F9F9F9;display: flex;align-items: center;">
					<img style="margin: 0 auto;" src="./images/add2.png" alt="">
				</div>
				
				<div class="addGoodStyle_head">
				
					<div class="addGoodStyle_heade">
						<div class="addGoodStyle_head_l">
							<img style="width: 200px;position: absolute;z-index: 10;" src="./images/icon-title.png" alt="">
							<p style="color: #fff;text-align: center;font-size: 20px;position: absolute;z-index: 11;top:18px;left: 50px;">基本信息</p>
						</div>
						<div class="addGoodStyle_head_r">
							<div class="w100p">
								<div class="ibox-content" style="padding: 0 10%;">
									<form class="form-horizontal m-t" id="edit_form" method="post" style="padding-bottom: 50px;">
										<input type="hidden" id="goodsCate" name="" value="" />
										<div class="form-group ">
											<label class="col-sm-3 control-label pull-left" style="text-align:right;display:inline-block;"><span style="color: red;">*</span>商品分类：</label>
											<div class="col-sm-8 pull-left">
												<div class="form-control" style="border: none;" id="goodCateName"></div>
											</div>
										</div>

										<div class="form-group ">
											<label class="col-sm-3 control-label pull-left" style="text-align:right;display:inline-block;"><span style="color: red;">*</span>商品名称：</label>
											<div class="col-sm-6 pull-left">
												<input id="goodsName" type="text" class="form-control goods_name" name="sort" value="" required=""
												 aria-required="true">
											</div>
										</div>

										<div class="form-group ">
											<label class="col-sm-3 control-label pull-left" style="text-align:right;display:inline-block;"><span style="color: red;">*</span>副标题：</label>
											<div class="col-sm-6 pull-left">
												<input id="goodsSubtitle" type="text" class="form-control goods_subtitle" name="sort" value="" required=""
												 aria-required="true">
											</div>
										</div>

										<!-- <div class="form-group ">
											<label class="col-sm-3 control-label pull-left" style="text-align:right;display:inline-block;"><span style="color: red;">*</span>商品品牌：</label>
											<select id="goodsBrandId" name="" class="pull-left h30 br_e5e6e7 f14 getBrandSelect brand_name" style="width: 200px;height:34px;margin-left: 15px;">
											</select>
										</div> -->

										<!-- <div class="form-group">
											<label class="col-sm-3 control-label pull-left" style="text-align:right;display:inline-block;"><span style="color: red;">*</span>商品介绍：</label>
											<div class="col-sm-8 pull-left">
												<textarea id="goodsDescribe" name="description" class="form-control goods_describe" style="height:200px"></textarea>
											</div>
										</div> -->

										<!-- <div class="form-group ">
											<label class="col-sm-3 control-label pull-left" style="text-align:right;display:inline-block;"><span style="color: red;">*</span>运费模板：</label>
											<select id="goodsFreightId" name="" class="pull-left h30 br_e5e6e7 f14 getFreightSelect goods_freight_name"
											 style="width: 200px;height:34px;margin-left: 15px;">
											</select>
										</div> -->
										
										<div class="form-group ">
											<label class="col-sm-3 control-label pull-left" style="text-align:right;display:inline-block;"><span style="color: red;">*</span>商品售价：</label>
											<div class="col-sm-6 pull-left">
												<input id="goodsPrice" type="text" class="form-control goods_price" name="sort" value="" required=""
												 aria-required="true">
											</div>
										</div>
										
										<div class="form-group ">
											<label class="col-sm-3 control-label pull-left" style="text-align:right;display:inline-block;"><span style="color: red;">*</span>计量单位：</label>
											<div class="col-sm-6 pull-left">
												<input id="goodsUnit" type="text" class="form-control goods_unit" name="sort" value="" required=""
												 aria-required="true">
											</div>
											<div class="pull-left" style="height: 34px;line-height: 34px;">该设置只对单品有效</div>
										</div>
										
										<div class="form-group hide">
											<label class="col-sm-3 control-label pull-left" style="text-align:right;display:inline-block;">赠送保盾：</label>
											<div class="col-sm-6 pull-left">
												<input id="goodsGiveBao" type="text" class="form-control goods_give_bao" name="sort" value="" required=""
												 aria-required="true">
											</div>
										</div>
										<div class="hide" style="display: flex;margin-bottom: 15px;">
											<div class="col-sm-3 control-label pull-left"></div>
											<div class="col-sm-9 pull-left" style="padding-left: 20px;">购买该商品时赠送消费积分数</div>
										</div>
										
									</form>
								</div>
							</div>
						</div>
					</div>

					<!-- <div style="width: 100%;display: flex;">
						<div style="width: 20%;height: 100%;border-right: 1px solid rgba(228, 228, 228, 1);position: relative;">
							<img style="width: 100%;position: absolute;z-index: 10;" src="./images/icon-title.png" alt="">
							<p style="100%;color: #fff;text-align: center;font-size: 22px;position: absolute;z-index: 11;top:32px;left: 70px;">库存规格</p>
						</div>
						<div style="width: 80%;">
							<div class="w100p">
								<div class="ibox-content" style="padding: 0 10%;">
									<form class="form-horizontal m-t" id="edit_form" method="post" style="padding-bottom: 50px;">
										<input type="hidden" class="edit_id" name="id" value="1" />

										<div class="form-group none">
											<label class="col-sm-3 control-label pull-left" style="text-align:right;display:inline-block;"><span style="color: red;">*</span>商品货号：</label>
											<div class="col-sm-6 pull-left">
												<input id="goodsNum" type="text" class="form-control goods_num" name="sort" value="" required=""
												 aria-required="true">
											</div>
										</div>

										<div class="form-group ">
											<label class="col-sm-3 control-label pull-left" style="text-align:right;display:inline-block;"><span style="color: red;">*</span>商品售价：</label>
											<div class="col-sm-6 pull-left">
												<input id="goodsPrice" type="text" class="form-control goods_price" name="sort" value="" required=""
												 aria-required="true">
											</div>
										</div>

										<div class="form-group ">
											<label class="col-sm-3 control-label pull-left" style="text-align:right;display:inline-block;"><span style="color: red;">*</span>商品划线价：</label>
											<div class="col-sm-6 pull-left">
												<input id="marketingPrice" type="text" class="form-control marketing_price" name="sort" value="" required=""
												 aria-required="true">
											</div>
										</div>

										<div class="form-group ">
											<label class="col-sm-3 control-label pull-left" style="text-align:right;display:inline-block;">成本价：</label>
											<div class="col-sm-6 pull-left">
												<input id="costPrice" type="text" class="form-control cost_price" name="sort" value="" required=""
												 aria-required="true">
											</div>
										</div>

										<div class="form-group ">
											<label class="col-sm-3 control-label pull-left" style="text-align:right;display:inline-block;"><span style="color: red;">*</span>商品库存：</label>
											<div class="col-sm-6 pull-left">
												<input id="goodsTory" type="text" class="form-control goods_tory" name="sort" value="" required=""
												 aria-required="true">
											</div>
										</div>
										<div style="display: flex;margin-bottom: 15px;">
											<div class="col-sm-3 control-label pull-left"></div>
											<div class="col-sm-9 pull-left" style="padding-left: 20px;">该设置只对单品有效，当商品存在多规格货品时为不可编辑状态，库存数值取决于货品数量</div>
										</div>

										<div class="form-group ">
											<label class="col-sm-3 control-label pull-left" style="text-align:right;display:inline-block;">库存预警值：</label>
											<div class="col-sm-6 pull-left">
												<input id="goodsToryWarn" type="text" class="form-control goods_tory_warn" name="sort" value="" required=""
												 aria-required="true">
											</div>
										</div>

										<div class="form-group ">
											<label class="col-sm-3 control-label pull-left" style="text-align:right;display:inline-block;">计量单位：</label>
											<div class="col-sm-6 pull-left">
												<input id="goodsUnit" type="text" class="form-control goods_unit" name="sort" value="" required=""
												 aria-required="true">
											</div>
										</div>

										<div class="form-group ">
											<label class="col-sm-3 control-label pull-left" style="text-align:right;display:inline-block;">商品重量：</label>
											<div class="col-sm-6 pull-left">
												<input id="goodsWeight" type="text" class="form-control pull-left" name="sort" value="" required=""
												 aria-required="true" style="width: 120px;">
												<select id="goodsWeightUnit" name="" class="pull-left h30 br_e5e6e7 f14 goods_weight_unit" style="width: 50px;height:34px;margin-left: 15px;">
													<option value="1">克</option>
													<option selected="selected" value="2">千克</option>
												</select>
											</div>
										</div>
									</form>
								</div>
							</div>
						</div>
					</div>
 -->
					<div class="addGoodStyle_head">
					
						<div class="addGoodStyle_heade">
							<div class="addGoodStyle_head_l">
								<img style="width: 200px;position: absolute;z-index: 10;" src="./images/icon-title.png" alt="">
								<p style="color: #fff;text-align: center;font-size: 20px;position: absolute;z-index: 11;top:18px;left: 50px;">基本信息</p>
							</div>
							<div class="addGoodStyle_head_r">
							<div class="w100p">
								<div class="ibox-content" style="padding: 0 10%;">
									<form class="form-horizontal m-t" id="edit_form" method="post" style="padding-bottom: 50px;">
										<input type="hidden" class="edit_id" name="id" value="1" />

										<!-- <div class="form-group ">
											<label class="col-sm-3 control-label pull-left" style="text-align:right;display:inline-block;">赠送保盾：</label>
											<div class="col-sm-6 pull-left">
												<input id="goodsGiveBao" type="text" class="form-control goods_give_bao" name="sort" value="" required=""
												 aria-required="true">
											</div>
										</div>
										<div style="display: flex;margin-bottom: 15px;">
											<div class="col-sm-3 control-label pull-left"></div>
											<div class="col-sm-9 pull-left" style="padding-left: 20px;">购买该商品时赠送消费积分数</div>
										</div> -->

										<div class="form-group hide">
											<label class="col-sm-3 control-label pull-left" style="text-align:right;display:inline-block;">赠送等级成长值：</label>
											<div class="col-sm-6 pull-left">
												<input id="goodsGrowthValue" type="text" class="form-control goods_growth_value" name="sort" value=""
												 required="" aria-required="true">
											</div>
										</div>
										<div class="hide" style="display: flex;margin-bottom: 15px;">
											<div class="col-sm-3 control-label pull-left"></div>
											<div class="col-sm-9 pull-left" style="padding-left: 20px;">购买该商品时赠送消费积分数</div>
										</div>

										<div class="form-group hide">
											<label class="col-sm-3 control-label pull-left" style="text-align:right;display:inline-block;">保盾购买金额：</label>
											<div class="col-sm-6 pull-left">
												<input id="buyBaoMoney" type="text" class="form-control buy_bao_money" name="sort" value="" required=""
												 aria-required="true">
											</div>
										</div>
										<div class="hide" style="display: flex;margin-bottom: 15px;">
											<div class="col-sm-3 control-label pull-left"></div>
											<div class="col-sm-9 pull-left" style="padding-left: 20px;">(此处需填写金额)购买该商品时最多可以使用积分的金额</div>
										</div>

										<div class="form-group ">
											<label class="col-sm-3 control-label pull-left" style="text-align:right;display:inline-block;">预告商品：</label>
											<select id="goodsTra" class="pull-left h30 br_e5e6e7 f14" style="width: 50px;height:34px;margin-left: 15px;">
												<option value="1">是</option>
												<option value="2">否</option>
											</select>
										</div>
										<div style="display: flex;margin-bottom: 15px;">
											<div class="col-sm-3 control-label pull-left"></div>
											<div class="col-sm-9 pull-left" style="padding-left: 20px;">如果设置为预告商品，商品上架和商品推荐不可用。</div>
										</div>

										<div class="form-group ">
											<label class="col-sm-3 control-label pull-left" style="text-align:right;display:inline-block;">商品上架：</label>
											<select id="goodsStatus" autocomplete="off" class="pull-left h30 br_e5e6e7 f14" style="width: 50px;height:34px;margin-left: 15px;">
												<option selected="selected" value="2">是</option>
												<option value="1">否</option>
											</select>
										</div>

										<div class="form-group ">
											<label class="col-sm-3 control-label pull-left" style="text-align:right;display:inline-block;">商品推荐：</label>
											<div style="display:flex;height: 34px;">
												<span style="display:flex;align-items:center;margin: 0px 10px;"><input id="newProducts" name="xORt" class="inputcherckStyle" type="checkbox" style="margin-top: 0px;margin-right: 10px;" value="1" />新品</span>
												<span style="display:flex;align-items:center;margin: 0px 10px;"><input id="recommend" name="xORt" class="inputcherckStyle" type="checkbox" style="margin-top: 0px;margin-right: 10px;" value="1" />推荐</span>
											</div>
										</div>

										<!-- <div class="form-group ">
											<label class="col-sm-3 control-label pull-left" style="text-align:right;display:inline-block;">服务保证：</label>
											<div style="display:flex;height: 34px;">
												<span style="display:flex;align-items:center;margin: 0px 10px;"><input id="returnGoods" name="" class="inputcherckStyle"
													 type="checkbox" style="margin-top: 0px;margin-right: 10px;" value="1" />7天无理由退货</span>
												<span style="display:flex;align-items:center;margin: 0px 56px;"><input id="freeShipping" name="" class="inputcherckStyle"
													 type="checkbox" style="margin-top: 0px;margin-right: 10px;" value="" />包邮</span>
											</div>
										</div>
										<div style="display: flex;margin-bottom: 15px;position: relative;top: -15px;">
											<div class="col-sm-3 control-label pull-left"></div>
											<div class="col-sm-3 pull-left" style="padding-left: 8px;">本商品支持7天无理由退货</div>本商品包邮
										</div> -->

										<div class="form-group ">
											<label class="col-sm-3 control-label pull-left" style="text-align:right;display:inline-block;">商品关键词：</label>
											<div class="col-sm-6 pull-left">
												<input id="goodsDetailedKeyword" type="text" class="form-control" name="sort" value="" required=""
												 aria-required="true">
											</div>
										</div>
										<div style="display: flex;margin-bottom: 15px;">
											<div class="col-sm-3 control-label pull-left"></div>
											<div class="col-sm-9 pull-left" style="padding-left: 20px;">商品关键词请用空格分隔；有两个功能，一是可以作为站内关键词查询，在前台搜索框输入关键词后，能够搜索到该商品；二是作为搜索引擎收录使用。</div>
										</div>

										<div class="form-group">
											<label class="col-sm-3 control-label pull-left" style="text-align:right;display:inline-block;">商品备注：</label>
											<div class="col-sm-8 pull-left">
												<textarea id="goodsDetailedRemark" name="description" placeholder="请输入内容" class="form-control" style="height:200px"></textarea>
											</div>
										</div>

									</form>
								</div>
							</div>
						</div>
					</div>

					<div class="addGoodStyle_head hide">
					
						<div class="addGoodStyle_heade">
							<div class="addGoodStyle_head_l">
								<img style="width: 200px;position: absolute;z-index: 10;" src="./images/icon-title.png" alt="">
								<p style="color: #fff;text-align: center;font-size: 20px;position: absolute;z-index: 11;top:18px;left: 50px;">基本信息</p>
							</div>
							<div class="addGoodStyle_head_r">
							<div class="w100p">
								<div class="ibox-content" style="padding: 0 10%;">
									<form class="form-horizontal m-t" id="edit_form" method="post" style="padding-bottom: 50px;">
										<input type="hidden" class="edit_id" name="id" value="1" />

										<div class="form-group " style="display: flex;flex-direction: column;">
											<div>
												<label class="col-sm-3 control-label pull-left" style="text-align:right;display:inline-block;">特惠促销：</label>
												<div style="display:flex;height: 34px;">
													<span style="display:flex;align-items:center;margin: 0px 10px;"><input id="chuXiaoNo" name="chuXiao" class="inputcherckStyle chuXiao"
														 type="radio" checked="checked" style="margin-top: 0px;margin-right: 10px;" value="0" />否</span>
													<span style="display:flex;align-items:center;margin: 0px 56px;"><input id="chuXiaoYes" checked="true" name="chuXiao"
														 class="inputcherckStyle chuXiao" type="radio" style="margin-top: 0px;margin-right: 10px;" value="1" />是</span>

												</div>
											</div>

											<div>
												<div class="col-sm-9 pull-right" style="position: relative;top: -15px;left: 20px;">
													<div class="pull-left mt10  ml10 mb30">
														<input id="startTime" type="text" class="form-control layer-date h30 time1" style="margin-top: 10px;width: 200px;"
														 placeholder="YYYY-MM-DD hh:mm:ss" disabled onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})"
														 required="" aria-required="true">
													</div>
													<span class="f14 pull-left h30 lh30 ml10 mb30" style="margin-top: 20px;">至</span>
													<div class="pull-left mt10 ml10 mb30">
														<input id="endTime" type="text" class="form-control layer-date h30 time1" style="margin-top: 10px;width: 200px;"
														 placeholder="YYYY-MM-DD hh:mm:ss" disabled onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})"
														 required="" aria-required="true">
													</div>
													<div class="pull-left h30 mt10 ml10 mb30">
														<input type="number" placeholder="输入促销价格" class="form-control mt10 h30 time1" style="width: 120px;" name="sort"
														 value="" required="" aria-required="true">
													</div>
												</div>

											</div>
										</div>

										<div class="form-group " style="display: flex;flex-direction: column;">
											<div>
												<label class="col-sm-3 control-label pull-left" style="text-align:right;display:inline-block;">商品限购：</label>
												<div style="display:flex;height: 34px;">
													<span style="display:flex;align-items:center;margin: 0px 10px;"><input id="xianGouNo" name="xianGou" class="inputcherckStyle xianGou"
														 type="radio" checked="checked" style="margin-top: 0px;margin-right: 10px;" value="0" />否</span>
													<span style="display:flex;align-items:center;margin: 0px 56px;"><input id="xianGouYes" checked="true" name="xianGou"
														 class="inputcherckStyle xianGou" type="radio" style="margin-top: 0px;margin-right: 10px;" value="1" />是</span>

												</div>
											</div>

											<div>
												<div class="col-sm-9 pull-right" style="position: relative;top: -15px;left: 20px;">
													<div class="pull-left mt10  ml10 mb30">
														<input id="startTime1" type="text" class="form-control layer-date h30 time2" style="margin-top: 10px;width: 200px;"
														 placeholder="YYYY-MM-DD hh:mm:ss" disabled onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})"
														 required="" aria-required="true">
													</div>
													<span class="f14 pull-left h30 lh30 ml10 mb30" style="margin-top: 20px;">至</span>
													<div class="pull-left mt10 ml10 mb30">
														<input id="endTime1" type="text" class="form-control layer-date h30 time2" style="margin-top: 10px;width: 200px;"
														 placeholder="YYYY-MM-DD hh:mm:ss" disabled onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})"
														 required="" aria-required="true">
													</div>
													<div class="pull-left h30 mt10 ml10 mb30">
														<input type="number" placeholder="输入限购数量" class="form-control mt10 h30 time2" style="width: 120px;" name="sort"
														 value="" required="" aria-required="true">
													</div>
												</div>
											</div>

										</div>

										<div class="form-group " style="display: flex;flex-direction: column;">
											<div>
												<label class="col-sm-3 control-label pull-left" style="text-align:right;display:inline-block;">会员价格：</label>
												<div style="display:flex;height: 34px;">
													<span style="display:flex;align-items:center;margin: 0px 10px;"><input id="huiYuanNo" name="huiYuan" class="inputcherckStyle huiYuan"
														 type="radio" checked="checked" style="margin-top: 0px;margin-right: 10px;" value="0" />否</span>
													<span style="display:flex;align-items:center;margin: 0px 56px;"><input id="huiYuanYes" checked="true" name="huiYuan"
														 class="inputcherckStyle huiYuan" type="radio" style="margin-top: 0px;margin-right: 10px;" value="1" />是</span>

												</div>
											</div>

											<div>
												<div style="display: flex;">
													<div class="col-sm-3 control-label"></div>
													<div class="col-sm-9 control-label" style="display: flex;">
														<div class="pull-left w100p">
															<table class="table table-bordered mb0 ">
																<thead>
																	<tr>
																		<th>黄金会员</th>
																		<th>白金会员</th>
																		<th>钻石会员</th>
																	</tr>
																</thead>
																<tbody>
																	<tr>
																		<th><input type="number" placeholder="输入价格" class="form-control huiYuanNum" style="width: 120px;margin:0 auto;"
																			 name="" value="" required="" aria-required="true"></th>
																		<th><input type="number" placeholder="输入价格" class="form-control huiYuanNum" style="width: 120px;margin:0 auto;"
																			 name="" value="" required="" aria-required="true"></th>
																		<th><input type="number" placeholder="输入价格" class="form-control huiYuanNum" style="width: 120px;margin:0 auto;"
																			 name="" value="" required="" aria-required="true"></th>
																	</tr>
																</tbody>
															</table>
														</div>
													</div>
												</div>
											</div>

										</div>

										<!-- <div class="form-group " style="display: flex;flex-direction: column;">
											<div>
												<label class="col-sm-3 control-label pull-left" style="text-align:right;display:inline-block;">阶梯价格：</label>
												<div style="display:flex;height: 34px;">
													<span style="display:flex;align-items:center;margin: 0px 10px;"><input id="jieTiNo" name="jieTi" class="inputcherckStyle jieTi"
														 type="radio" checked="checked" style="margin-top: 0px;margin-right: 10px;" value="0" />否</span>
													<span style="display:flex;align-items:center;margin: 0px 56px;"><input id="jieTiYes" checked="true" name="jieTi"
														 class="inputcherckStyle jieTi" type="radio" style="margin-top: 0px;margin-right: 10px;" value="1" />是</span>

												</div>
											</div>

											<div>
												<div style="display: flex;">
													<div class="col-sm-3 control-label"></div>
													<div class="col-sm-9 control-label" style="display: flex;">
														<div class="pull-left w100p">
															<table class="table table-bordered mb0 ">
																<thead>
																	<tr>
																		<th>数量</th>
																		<th>价格</th>
																		<th>操作</th>
																	</tr>
																</thead>
																<tbody>
																	<tr>
																		<th><input type="number" placeholder="输入价格" class="form-control jieTiNum" style="width: 120px;margin:0 auto;"
																			 name="" value="" required="" aria-required="true"></th>
																		<th><input type="number" placeholder="输入价格" class="form-control jieTiNum" style="width: 120px;margin:0 auto;"
																			 name="" value="" required="" aria-required="true"></th>
																		<th id="jieTiDel">
																			<span class="under_line cursor_pointer delete_span pl20 c_1ABC9C">删除</span>
																			<span class="under_line cursor_pointer add_span pl20 c_1ABC9C">增加</span>
																		</th>
																	</tr>
																</tbody>
															</table>
														</div>
													</div>
												</div>
											</div>

										</div> -->

										<div class="form-group " style="display: flex;flex-direction: column;">
											<div>
												<label class="col-sm-3 control-label pull-left" style="text-align:right;display:inline-block;">满减价格：</label>
												<div style="display:flex;height: 34px;">
													<span style="display:flex;align-items:center;margin: 0px 10px;"><input id="manJianNo" name="manJian" class="inputcherckStyle manJian"
														 type="radio" checked="checked" style="margin-top: 0px;margin-right: 10px;" value="0" />否</span>
													<span style="display:flex;align-items:center;margin: 0px 56px;"><input id="manJianYes" checked="true" name="manJian"
														 class="inputcherckStyle manJian" type="radio" style="margin-top: 0px;margin-right: 10px;" value="1" />是</span>

												</div>
											</div>

											<div>
												<div style="display: flex;">
													<div class="col-sm-3 control-label"></div>
													<div class="col-sm-9 control-label" style="display: flex;">
														<div class="pull-left w100p">
															<table class="table table-bordered mb0 ">
																<thead>
																	<tr>
																		<th>满</th>
																		<th>立减</th>
																		<th>操作</th>
																	</tr>
																</thead>
																<tbody>
																	<tr>
																		<th><input type="number" placeholder="输入价格" class="form-control manJianNum" style="width: 120px;margin:0 auto;"
																			 name="" value="" required="" aria-required="true"></th>
																		<th><input type="number" placeholder="输入价格" class="form-control manJianNum" style="width: 120px;margin:0 auto;"
																			 name="" value="" required="" aria-required="true"></th>
																		<th id="manJianDel">
																			<span class="under_line cursor_pointer delete_span pl20 c_1ABC9C">删除</span>
																			<span class="under_line cursor_pointer add_span pl20 c_1ABC9C">增加</span>
																		</th>
																	</tr>
																</tbody>
															</table>
														</div>
													</div>
												</div>
											</div>

										</div>


									</form>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="addGoodStyle_footer">
					<div id="" style="margin: 0 auto;padding: 30px 0;">
						<button id="goBack" type="button" style="width: 180px;height: 45px;border-radius: 4px;background-color:#fff;color:rgba(26, 188, 156, 1);border: 1px solid rgba(26, 188, 156, 1);">上一步，选择商品分类</button>
						<button id="saveBtn" type="button" style="margin:0 50px;width: 180px;height: 45px;border-radius: 4px;background-color:rgba(26, 188, 156, 1);color:#fff;">下一步，填写商品信息</button>
					</div>
				</div>
			</div>

		</div>

		<script src="js/jquery-2.1.0.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/bootstrap.min.js?v=3.3.6"></script>
		<script src="js/plugins/peity/jquery.peity.min.js"></script>
		<script src="js/content.min.js?v=1.0.0"></script>
		<script src="js/plugins/layer/laydate/laydate.js"></script>
		<script src="js/plugins/sweetalert/sweetalert.min.js"></script>
		<script src="js/plugins/iCheck/icheck.min.js"></script>
		<script src="js/common.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/cropper.min.js"></script>

		<script>
			var tableTimeout, addManageTimeout, setRoleTime, editManageTimeout, deleteTimeOut, getPowerList, powerName = "",
				limits = 20,
				page = 1,
				counts = 0,
				table_title;

			var totalPages = 0;
			var levelText1 = "";
			levelText2 = "";
			levelText3 = "";
			
			var goodsCate;

			$(document).ready(function() {
				IsTokenSave();
				var cateArr1 = sessionStorage.getItem("cateArr1").split(',')
				sessionStorage.removeItem("cateArr1");
				if (sessionStorage.getItem("goods2step") != null) {
					var info = sessionStorage.getItem("goods2step");
					$("#goodsId").val(info.goodsId)
					$("#goodsName").val(info.goodsName)
					$("#goodsSubtitle").val(info.goodsSubtitle)
					$("#goodsBrandId").val(info.goodsBrandId)
					$("#goodsDescribe").val(info.goodsDescribe)
					$("#goodsFreightId").val(info.goodsFreightId)
					$("#goodsNum").val(info.goodsNum)
					$("#goodsPrice").val(info.goodsPrice)
					$("#costPrice").val(info.costPrice)
					$("#goodsTory").val(info.goodsTory)
					$("#goodsToryWarn").val(info.goodsToryWarn)
					$("#goodsUnit").val(info.goodsUnit)
					$("#goodsWeight").val(info.goodsWeight)
					$("#goodsWeightUnit").val(info.goodsWeightUnit)
					$("#goodsGiveBao").val(info.goodsGiveBao)
					$("#goodsGrowthValue").val(info.goodsGrowthValue)
					$("#buyBaoMoney").val(info.buyBaoMoney)
					$("#goodsTra").val(info.goodsTra)
					$("#goodsStatus").val(info.goodsStatus)
					$("#goodsDetailedKeyword").val(info.goodsDetailedKeyword)
					$("#goodsDetailedRemark").val(info.goodsDetailedRemark)
					$("#newProducts").val(info.newProducts)
					$("#recommend").val(info.recommend)
					$("#returnGoods").val(info.returnGoods)
					$("#freeShipping").val(info.freeShipping)

					// sessionStorage.clear("goods2step");
				}
				$("#goodCateName").html(cateArr1[1]);
				$("#goodsCate").val(cateArr1[0]);
				getHtmlDom();
				// getBrandSelect();
				// getFreightSelect();

				$('#newProducts').change(function() {
					if ($(this)[0].checked == true) {
						$(this).val(2);
					} else {
						$(this).val(1);
					}
				});
				$('#recommend').change(function() {
					if ($(this)[0].checked == true) {
						$(this).val(2);
					} else {
						$(this).val(1);
					}
				});

				$('#returnGoods').change(function() {
					if ($(this)[0].checked == true) {
						$(this).val(1);
					} else {
						$(this).val(0);
					}
				});
				$('#freeShipping').change(function() {
					if ($(this)[0].checked == true) {
						$(this).val(1);
					} else {
						$(this).val(0);
					}
				});



				$("#goBack").click(function() {
					history.go(-1);
				})
				$("#saveBtn").click(function() {

					// console.log($("#goodsId").val());
					if ($("#goodsName").val() == "") {
						TipsAlert("商品名称不能为空！");
						return false;
					}
					if ($("#goodsSubtitle").val() == "") {
						TipsAlert("商品副标题不能为空！");
						return false;
					}
					if ($("#goodsPrice").val() == "") {
						TipsAlert("商品售价不能为空！");
						return false;
					}
					
					if($("#newProducts").val() == ""){
						$("#newProducts").val(1)
					}
					if($("#recommend").val() == ""){
						$("#recommend").val(1)
					}

					var info = {
						"goodsCate": $("#goodsCate").val(),
						"goodsName": $("#goodsName").val(),
						"goodsSubtitle": $("#goodsSubtitle").val(),
						"goodsSort": $("#goodsSort").val(),
						"goodsBrandId": $("#goodsBrandId").val(),
						"goodsDescribe": $("#goodsDescribe").val(),
						"goodsFreightId": $("#goodsFreightId").val(),
						"goodsNum": $("#goodsNum").val(),
						"goodsPrice": $("#goodsPrice").val(),
						"costPrice": $("#costPrice").val(),
						"marketingPrice": $("#marketingPrice").val(),
						"goodsTory": $("#goodsTory").val(),
						"goodsToryWarn": $("#goodsToryWarn").val(),
						"goodsUnit": $("#goodsUnit").val(),
						"goodsWeight": $("#goodsWeight").val(),
						"goodsWeightUnit": $("#goodsWeightUnit").val(),
						"goodsGiveBao": $("#goodsGiveBao").val(),
						"goodsGrowthValue": $("#goodsGrowthValue").val(),
						"buyBaoMoney": $("#buyBaoMoney").val(),
						"goodsTra": $("#goodsTra").val(),
						"goodsStatus": $("#goodsStatus").val(),
						"goodsDetailedKeyword": $("#goodsDetailedKeyword").val(),
						"goodsDetailedRemark": $("#goodsDetailedRemark").val(),
						"goodsSpec": $("#goodsSpec").val(),
						"goodsPurch": $("#goodsPurch").val(),
						"newProducts": $("#newProducts").val(),
						"recommend": $("#recommend").val(),
						"freeShipping": $("#freeShipping").val(),
						"returnGoods": $("#returnGoods").val(),
					};
					
					sessionStorage.setItem("goods2step", JSON.stringify(info));
					window.location = "tech_add_good3.html";
					

				})
			});
			/**
			 * 该方法用于获取下拉列表数据
			 * @param {Number} token是获取数据的必传参数
			 * */
			function getBrandSelect() {
				$.ajax({
					type: "get",
					url: urls + common_url.bSysBrand_brandList,
					async: true,
					timeout: 30000,
					dataType: "json",
					headers: {
						'X-Access-Token': userMessage.token,
					},
					data: {

					},
					success: function(json) {
						console.log(json);
						CheckLogout(json); //检查是否登陆过期		
						if (json.code == 0) {

							var optionHtml = '<option value="">选择一级分类</option>';
							var myData = json.data;
							for (var i = 0; i < myData.length; i++) {
								optionHtml = optionHtml + '<option data-brandName="' + myData[i]["brandName"] + '" data-id="' + myData[i][
									"id"
								] + '" value="' + myData[i]["id"] + '">' + myData[i]["brandName"] + '</option>';
							}
							$(".getBrandSelect").html(optionHtml);

							InitFunc();

						} else {
							$(".getBrandSelect").html('<option>获取下拉失败</option>');
						}

						InitTime(tableTimeout);
					},
					error: function(xml, text, errorThrown) {
						if (text == "timeout") {
							TipsAlert("请求超时,请检查网络或着重新打开该页面.");
						} else {
							TipsAlert("请求数据失败,请联系后台技术人员");
						}
						InitTime(tableTimeout);
					}
				})
			}

			function getFreightSelect() {
				$.ajax({
					type: "get",
					url: urls + common_url.sysFreightTemplate_list,
					async: true,
					timeout: 30000,
					dataType: "json",
					headers: {
						'X-Access-Token': userMessage.token,
					},
					data: {

					},
					success: function(json) {
						console.log(json);
						CheckLogout(json); //检查是否登陆过期		
						if (json.code == 0) {

							var optionHtml = '<option value="">选择一级分类</option>';
							var myData = json.data;
							for (var i = 0; i < myData.length; i++) {
								optionHtml = optionHtml + '<option data-frName="' + myData[i]["frName"] + '" data-id="' + myData[i]["id"] +
									'" value="' + myData[i]["id"] + '">' + myData[i]["frName"] + '</option>';
							}
							$(".getFreightSelect").html(optionHtml);

							InitFunc();

						} else {
							$(".getFreightSelect").html('<option>获取下拉失败</option>');
						}

						InitTime(tableTimeout);
					},
					error: function(xml, text, errorThrown) {
						if (text == "timeout") {
							TipsAlert("请求超时,请检查网络或着重新打开该页面.");
						} else {
							TipsAlert("请求数据失败,请联系后台技术人员");
						}
						InitTime(tableTimeout);
					}
				})
			}

			/**
			 * 该方法用于初始化操作列里的事件
			 * */

			function InitFunc() {

			}

			function getHtmlDom() {
				$(".time1").removeAttr("disabled", "disabled");
				$(".time2").removeAttr("disabled", "disabled");
				$(".huiYuanNum").removeAttr("disabled", "disabled");
				$(".jieTiNum").removeAttr("disabled", "disabled");
				$(".manJianNum").removeAttr("disabled", "disabled");

				$('.chuXiao').change(function() {
					if ($(this).val() == 1) { // 0 否 1 是 
						$(".time1").removeAttr("disabled", "disabled");
					} else {
						$(".time1").val("");
						$(".time1").attr("disabled", "disabled");
					}
				});
				$('.xianGou').change(function() {
					if ($(this).val() == 1) { // 0 否 1 是 
						$(".time2").removeAttr("disabled", "disabled");
					} else {
						$(".time2").val("");
						$(".time2").attr("disabled", "disabled");
					}
				});
				$('.huiYuan').change(function() {
					if ($(this).val() == 1) { // 0 否 1 是 
						$(".huiYuanNum").removeAttr("disabled", "disabled");
					} else {
						$(".huiYuanNum").val("");
						$(".huiYuanNum").attr("disabled", "disabled");
					}
				});
				$('.jieTi').change(function() {
					if ($(this).val() == 1) { // 0 否 1 是 
						$(".jieTiNum").removeAttr("disabled", "disabled");
					} else {
						$(".jieTiNum").val("");
						$(".jieTiNum").attr("disabled", "disabled");
					}
				});
				$('.manJian').change(function() {
					if ($(this).val() == 1) { // 0 否 1 是 
						$(".manJianNum").removeAttr("disabled", "disabled");
					} else {
						$(".manJianNum").val("");
						$(".manJianNum").attr("disabled", "disabled");
					}
				});
			}
		</script>
	</body>
</html>
